package com.sgolub.commanndsonline.domain.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import com.sgolub.commanndsonline.helpers.CustomDateSerializer;


@Entity
@Table(name = "ENT_ADVERTISING_REGISTRY_PERIODS")
public class OperationItem {
		
    @Id
    @Column(name = "ID")
    @GeneratedValue 
    private Integer 		id;
	
    @Column(name = "FK_ADVERTISING_REGISTRY_ID")
    private Integer		fkAdvertisingRegistryId;
    
    @Column(name = "INVENTAR_NR")
    private String 			inventarNr;

    @Column(name = "BEGIN_DATE")
    private Date 			beginDate;
    
    @Column(name = "END_DATE")
    private Date 			endDate;    
    
    @Column(name = "RESERVATION_TYPE")
	private Integer			reservationType;
    
    @Column(name = "MANAGER_ID")
	private String 			managerId;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getFkAdvertisingRegistryId() {
		return fkAdvertisingRegistryId;
	}

	public void setFkAdvertisingRegistryId(Integer fkAdvertisingRegistryId) {
		this.fkAdvertisingRegistryId = fkAdvertisingRegistryId;
	}

	public String getInventarNr() {
		return inventarNr;
	}

	public void setInventarNr(String inventarNr) {
		this.inventarNr = inventarNr;
	}

	@JsonSerialize(using = CustomDateSerializer.class)
	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	@JsonSerialize(using = CustomDateSerializer.class)
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Integer getReservationType() {
		return reservationType;
	}

	public void setReservationType(Integer reservationType) {
		this.reservationType = reservationType;
	}

	public String getManagerId() {
		return managerId;
	}

	public void setManagerId(String managerId) {
		this.managerId = managerId;
	}
    
    
	
}
